/*
 * 作者：姚俊
 * 功能：添加学科建设平台的action
 * 日期：2015-05-30
 * 
 */
package admin.action.InnPlatform;

import admin.bean.Platform;
import admin.service.subject.PlatformService;

public class AddPlatformAction {
	
	private Platform platform;
	private String flag;

	public Platform getPlatform() {
		return platform;
	}

	public void setPlatform(Platform platform) {
		this.platform = platform;
	}
	
	
	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String execute()
	{
		this.getPlatform().setSubjectId(1);
		new PlatformService().insertPlatform(this.getPlatform());
		this.setFlag("succ");
		return "succ";
	}

}
